import http from '@/api';

// 产品新增
const productAdd = data => {
  return http.post('/adminApi/product/add', data);
};

// 产品列表
const productList = data => {
  return http.post('/adminApi/product/list', data);
};

// 产品删除
const productDelete = data => {
  return http.post('/adminApi/product/delete', data);
};

// 产品编辑
const productEdit = data => {
  return http.post('/adminApi/product/edit', data);
};
// 产品详情
const productDetail = data => {
  return http.post('/adminApi/product/findById', data);
};

export { productAdd, productList, productDelete, productEdit, productDetail };
